package entities;

import java.util.HashMap;
import java.util.Map;

import service.configuration.NamingUtil;

public class Sheet {
	protected Map<String, Object> properties;
	
	public Sheet() {
		properties = new HashMap<String, Object>();
		setStatus(Status.Unknown);
	}

	public Status getStatus() {
		return (Status) properties.get(NamingUtil.STATUS);
	}
	
	public void setStatus(Status status) {
		properties.put(NamingUtil.STATUS, status);
	}
	
	public Map<String, Object> getProperties() {
		return properties;
	}

	public void setProperties(Map<String, Object> properties) {
		this.properties = properties;
	}
	
	public Object getProperty(String key) {
		return properties.get(key);
	}
	
	public void setProperty(String key, Object value) {
		properties.put(key, value);
	}
	
	public String getCode() {
		return (String) properties.get(NamingUtil.CODE);
	}
	
	public String getType() {
		return (String) properties.get(NamingUtil.TYPE);
	}

}
